package com.ws.lv.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class Res {
    //轮播图用
    public static String fileDir;
    public static String fileUrl;
    //后台用户用
    public static String adminTxFileDir;
    public static String adminTxFileUrl;
    //前台用户用
    public static String homeTxFileDir;
    public static String homeTxFileUrl;
    //线路附图
    public static String fuTuFileDir;
    public static String fuTuFileUrl;
    //线路主图
    public static String mainFileDir;
    public static String mainFileUrl;


    @Value("${fileDir}")
    public void getFileDir(String fileDir) {
        Res.fileDir = fileDir;
    }

    @Value("${fileUrl}")
    public void getFileUrl(String fileUrl) {
        Res.fileUrl = fileUrl;
    }

    @Value("${adminTxFileDir}")
    public void getAdminTxFileDir(String adminTxFileDir) {
        Res.adminTxFileDir = adminTxFileDir;
    }

    @Value("${adminTxFileUrl}")
    public void getAdminTxFileUrl(String adminTxFileUrl) {
        Res.adminTxFileUrl = adminTxFileUrl;
    }

    @Value("${homeTxFileDir}")
    public void getHomeTxFileDir(String homeTxFileDir) {
        Res.homeTxFileDir = homeTxFileDir;
    }

    @Value("${homeTxFileUrl}")
    public void getHomeTxFileUrl(String homeTxFileUrl) {
        Res.homeTxFileUrl = homeTxFileUrl;
    }

    @Value("${fuTuFileDir}")
    public void getFuTuFileDir(String fuTuFileDir) {
        Res.fuTuFileDir = fuTuFileDir;
    }

    @Value("${fuTuFileUrl}")
    public void getFuTuFileUrl(String fuTuFileUrl) {
        Res.fuTuFileUrl = fuTuFileUrl;
    }

    @Value("${mainFileDir}")
    public void getMainFileDir(String mainFileDir) {
        Res.mainFileDir = mainFileDir;
    }

    @Value("${mainFileUrl}")
    public void getMainFileUrl(String mainFileUrl) {
        Res.mainFileUrl = mainFileUrl;
    }


}
